package com.itheima.exerciseTest.method10_19.method10;

import javafx.print.Collation;

import java.text.Collator;
import java.util.Collection;
import java.util.Locale;
import java.util.TreeSet;

public class Test {
    public static void main(String[] args) {
        /*Collator ins = Collator.getInstance(Locale.CHINESE);
        int compare = ins.compare("阿华", "白菜");
        System.out.println(compare); // -1*/
        Student s1 = new Student("张三",23);
        Student s4 = new Student("赵六",23);
        Student s2 = new Student("李四",24);
        Student s3 = new Student("王五",25);

        TreeSet<Student> ts = new TreeSet<>();
        ts.add(s1);
        ts.add(s2);
        ts.add(s3);
        ts.add(s4);

        System.out.println(ts);
    }
}
